#captionVIDEO{
  display: block;
  position: absolute;
  margin-top: 50px;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 40px;
  color: white;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 36pt;
  text-align: center;
}



#resolutionH2{
    text-decoration: none;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22pt;
}



.gridResolution {
    position: relative;
    left: 2%;
    width: 80%;
    height: 60vh;
}
/* Grid-Aufteilung: Bilder links, Text rechts */
#gridResolution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: auto;

}

/* Linker Bereich für gestapelte Bilder */
.RESOLUTION {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    
}

/* Rechter Textbereich */
.resolutionH2PhText {
    text-align: center;
    color: #737379;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15pt;
    width: 100%;
    align-self: center;
}

#resolutionPhText{
    margin-top: 20px;
}

/* Einzelne Bilder */
.resolution {
    border-radius: 20px;
    /* border: 2px solid rgba(0, 255, 150, 0.5); */
    box-shadow: -10px -10px 35px rgb(0, 0, 0);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    
}

.resolution img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1; /* Makes images slightly transparent */
}


.resolution span {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  font-size: 3.5em;
  font-weight: bold;
  z-index: 2;


}

/*RESOLUTION*/
.six-k {
    width: auto;
    height: auto;
    top: 0;
}

.four-k {
    width: auto;
    height: auto;
    top: -23%;
    left: 14vw;
    transform: scale(0.7);

}

.full-hd {
    width: auto;
    height: auto;
    top: -40%;
    left: 25vw;
    transform: scale(0.35);
}

/* Responsive Design */
/* 4K and larger screens (3840px and up) */
@media (min-width: 3840px) {
  .RESOLUTION {
    transform: scale(1.2);
  }

  .resolutionH2PhText {
    transform: translateY(-600px);
    font-size: 20pt;
  }

  .four-k {
    transform: translateX(-120px) translateY(0px) scale(0.7);
  }

  .full-hd {
    transform: translateX(-120px) translateY(-135px) scale(0.35);
  }

  #captionVIDEO {
    font-size: 48pt;
  }

  #resolutionH2 {
    font-size: 28pt;
  }
}

/* 2K to 4K (2560px to 3839px) */
@media (min-width: 2560px) and (max-width: 3839px) {
  .RESOLUTION {
    transform: scale(0.8);
  }

  .resolutionH2PhText {
    transform: translateY(-500px);
    font-size: 18pt;
  }

  .four-k {
    transform: translateX(-100px) translateY(0px) scale(0.7);
  }

  .full-hd {
    transform: translateX(-100px) translateY(-115px) scale(0.35);
  }

  #captionVIDEO {
    font-size: 36pt;
  }
}

/* Large Desktop (1920px to 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
  .RESOLUTION {
    transform: scale(0.7);
  }

  .resolutionH2PhText {
    transform: translateY(-400px);
    font-size: 16pt;
  }

  .four-k {
    transform: translateX(-85px) translateY(5px) scale(0.7);
  }

  .full-hd {
    transform: translateX(-95px) translateY(-80px) scale(0.35);
  }

  #captionVIDEO {
    font-size: 32pt;
  }
}

/* Desktop (1440px to 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
  #gridResolution {
    gap: 40px;
  }

  .RESOLUTION {
    transform: scale(0.6);
  }

  .resolutionH2PhText {
    transform: translateY(-300px);
    font-size: 15pt;
  }

  .four-k {
    transform: translateX(-70px) translateY(10px) scale(0.7);
  }

  .full-hd {
    transform: translateX(-90px) translateY(-40px) scale(0.35);
  }

  #captionVIDEO {
    font-size: 28pt;
  }
}

/* Laptop (1024px to 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
  #gridResolution {
    gap: 30px;
  }

  .RESOLUTION {
    transform: scale(0.5);
  }

  .resolutionH2PhText {
    transform: translateY(-250px);
    font-size: 14pt;
  }

  .four-k {
    transform: translateX(-60px) translateY(15px) scale(0.7);
  }

  .full-hd {
    transform: translateX(-80px) translateY(-35px) scale(0.35);
  }

  #captionVIDEO {
    font-size: 24pt;
  }
}

/* Tablet (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  #gridResolution {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .RESOLUTION {
    order: 1;
    transform: scale(0.5);
    margin-bottom: 100px;
  }

  .resolutionH2PhText {
    order: 2;
    transform: translateY(0);
    font-size: 14pt;
    margin-top: 10px;
  }

  .four-k {
    transform: translate(0%) translateY(20px) scale(0.7);
  }

  .full-hd {
    transform: translate(15%) translateY(-40px) scale(0.35);
  }

  #captionVIDEO {
    font-size: 22pt;
    padding: 15px;
  }
}

/* iPhone 16 Pro Max (430px width) */
@media screen and (max-width: 430px) {
  #gridResolution {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .RESOLUTION {
    order: 1;
    transform: scale(0.55);
    margin-bottom: 20px;
    width: 100%;
  }

  .resolutionH2PhText {
    order: 2;
    transform: translateY(-40px);
    font-size: 18pt;
    margin-top: 0;
    padding: 0 20px;
  }

  .four-k {
    transform: translate(-5%) translateY(15px) scale(0.75);
  }

  .full-hd {
    transform: translate(5%) translateY(-45px) scale(0.45);
  }

  #captionVIDEO {
    font-size: 26pt;
    padding: 15px 25px;
    border-width: 2px;
    width: auto;
    margin-top: 40px;
  }

  .resolution span {
    font-size: 3.2em;
  }

  .resolution {
    border-radius: 15px;
    box-shadow: -5px -5px 20px rgb(0, 0, 0);
    margin-bottom: -30px;
  }
}

/* Update tablet breakpoint to ensure smooth transition */
@media (min-width: 431px) and (max-width: 1023px) {
  #gridResolution {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .RESOLUTION {
    order: 1;
    transform: scale(0.5);
    margin-bottom: 100px;
  }

  .resolutionH2PhText {
    order: 2;
    transform: translateY(0);
    font-size: 14pt;
    margin-top: 10px;
  }

  .four-k {
    transform: translate(0%) translateY(20px) scale(0.7);
  }

  .full-hd {
    transform: translate(15%) translateY(-40px) scale(0.35);
  }

  #captionVIDEO {
    font-size: 22pt;
    padding: 15px;
  }
}

/* Large Mobile (481px to 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  #gridResolution {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .RESOLUTION {
    order: 1;
    transform: scale(0.45);
    margin-bottom: 80px;
  }

  .resolutionH2PhText {
    order: 2;
    transform: translateY(0);
    font-size: 13pt;
    margin-top: 0;
  }

  .four-k {
    transform: translate(-5%) translateY(15px) scale(0.75);
  }

  .full-hd {
    transform: translate(10%) translateY(-45px) scale(0.4);
  }

  #captionVIDEO {
    font-size: 20pt;
    padding: 12px;
  }
}

/* Small Mobile (320px to 480px) */
@media (max-width: 480px) {
  #gridResolution {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .RESOLUTION {
    order: 1;
    transform: scale(0.4);
    margin-bottom: 60px;
  }

  .resolutionH2PhText {
    order: 2;
    transform: translateY(0);
    font-size: 12pt;
    margin-top: 0;
  }

  .four-k {
    transform: translate(-10%) translateY(10px) scale(0.8);
  }

  .full-hd {
    transform: translate(5%) translateY(-50px) scale(0.45);
  }

  #captionVIDEO {
    font-size: 18pt;
    padding: 10px;
    border-width: 2px;
  }

  .resolution span {
    font-size: 2.8em;
  }
}
